package com.tang.imgupload.commen;

import lombok.AllArgsConstructor;
import lombok.Getter;

public final class Constant {


	@AllArgsConstructor
	@Getter
	public enum RABBIT_MQ {
		EXCHANG_SR("exchange.sr"),
		QUEUE_BICUBIC("queue.bicubic"),
		QUEUE_SRMD("queue.srmd"),
		QUEUE_SRCNN("queue.srcnn");
		private final String value;
	}

	@AllArgsConstructor
	@Getter
	public enum INTEGER {
		Day(86400);
		private final int value;
	}


	@AllArgsConstructor
	@Getter
	public enum CommenResult {
		SUCCESSFUL("successful", 200),
		FAILED("failed", 400),
		FILE_EMPTY("文件为空", 400),
		FILE_NAME_ERROR("文件名错误", 400),
		FILE_FORMAT_ERROR("文件格式不正确", 400),
		FILE_SAVE_ERROR("文件保存失败", 400),
		SQL_INSERT_ERROR("数据库插入失败", 400),
		SQL_SELECT_ERROR("数据库查询为空或者失败", 400),
		MQ_SEND_EXCEPTION("消息发送异常", 400);
		private final String msg;
		private final Integer code;
	}
}
